/*
* @Author: xiaobing00008
* @Date:   2018-10-03 19:20:42
* @Last Modified by:   xiaobing00008
* @Last Modified time: 2018-10-03 19:28:57
*/
import { CHANGE_INPUT_VALUE, ADD_TODO_ITEM, DELETE_TODO_ITEM } from './actionTypes'

export const getInputChangeAction = (value) => ({
    type: CHANGE_INPUT_VALUE,
    value
})

export const getAddItemAction = () => ({
    type: ADD_TODO_ITEM
})

export const getDeleteItemAction = (index) => ({
    type: DELETE_TODO_ITEM,
    index
})